package atguigu.callBackInt;

public class Service4 {

	public static void main(String[] args) {
		Service4 service4 = new Service4();
		Result r1 = service4.test1();
		Result r2 = service4.test2();
		
		System.out.println(r1.getSuccess()+"::"+r1.getMsg());
		System.out.println(r2.getSuccess()+"::"+r2.getMsg());
	}
	
	public Result test1() {
		return new ClientExampleRunner(()->{
			return Result.SUCCESS();
		}).run();
	}
	
	public Result test2() {
		return new ClientExampleRunner(()->{
			return Result.FAIL();
		}).run();
	}
}
